package com.Java.train.business.req.daily;

import com.Java.train.common.req.PageReq;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class DailyTrainTicketQueryReq extends PageReq {
    @ApiModelProperty("日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;

    @ApiModelProperty("车次编号")
    private String trainCode;

    @ApiModelProperty("出发站")
    @TableField("start")
    private String start;

    @ApiModelProperty("到达站")
    @TableField("end")
    private String end;
}
